package io.fft.flight.modules.flight.service;

import io.fft.flight.common.service.CrudService;
import io.fft.flight.modules.flight.dto.OrderDTO;
import io.fft.flight.modules.flight.dto.order.OrderNotifyBaseDTO;
import io.fft.flight.modules.flight.dto.order.OrderNotifyDTO;
import io.fft.flight.modules.flight.entity.OrderEntity;

/**
 * 用户订单
 *
 * @author likailun kellenli30541@gmail.com
 * @since 1.0.0 2023-06-20
 */
public interface OrderService extends CrudService<OrderEntity, OrderDTO> {
    /**
     * 订单通知
     *
     * @param dto
     */
    boolean orderNotify(OrderNotifyDTO dto);

    /**
     * 订单明细
     *
     * @param orderNo 订单号
     * @return
     */
    OrderNotifyBaseDTO queryDetail(String orderNo);
}